NevronOpenVision
Nevron.Nov.DataStructures Namespace / NList<T> Class / Shuffle Method
In This Topic
    Shuffle Method (NList<T>)
    In This Topic
    Randomly repositions the elements in this list using the Fisher-Yates algorithm AKA the Knuth Shuffle. It runs in O(n) time and shuffles in place, so it's better performing than the "sort by random" technique.
    Syntax
    public void Shuffle()
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also